class AutoRotationBtn extends eui.Button {
    public constructor() {
        super();
        this.setAutoAvbleState();
    }
	/**
	 * 设置为可用状态
	 */
    public setAutoAvbleState() {
        this.skinName = "m_auto_rotation";
        this.touchEnabled = true;
        this.name = "auto_rotation_btn";
        this.currentState = "";
    }
	/**
	 * 设置为不可用状态
	 */
    public setAutoDisState() {
        // alert();
        this.currentState = "dis";
        this.skinName = "test";
        this.touchEnabled = false;
        this.name = null;
        // this.currentState = "disabled";
    }

    /**
 * 设置为可用状态
 */
    public setStopAvbleState() {
        this.skinName = "m_auto_rotation_stop";
        this.touchEnabled = true;
        this.name = "stoproation";
        this.currentState = "";
    }
	/**
	 * 设置为不可用状态
	 */
    public setStopDisState() {
        this.skinName = "m_auto_rotation_stop";
        this.touchEnabled = false;
        this.name = null;
        this.currentState = "disabled";
    }

}